package pub.wkq.springbatch.batch._01_hello;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;
import org.springframework.batch.core.JobParameters;

/**
 * @author 21129
 */
public class JobStateListener implements JobExecutionListener {
    @Override
    public void beforeJob(JobExecution jobExecution) {
        JobParameters jobParameters = jobExecution.getJobParameters();
        System.err.println(" 执行中" );
    }

    @Override
    public void afterJob(JobExecution jobExecution) {
        System.err.println("执行后 " );
    }
}
